package pers.mobian.springfirst.factorybean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;
import pers.mobian.springfirst.firstTest.User;

/**
 * @Date 2021/7/9 19:01
 * @Created mobian
 * @Description
 */
@Component
public class MoBian implements FactoryBean {
	@Override
	public Object getObject() throws Exception {
		return new User();
	}

	@Override
	public Class<?> getObjectType() {
		return User.class;
	}
}
